package com.shangcheng.dubbo.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shangcheng.model.domain.SmsHomeRecommendProduct;

import java.util.List;

/**
 * @author shiqiang
 * @version 1.0
 * @date 2022/5/13 11:51
 */
public interface SmsHomeRecommendProductApi {
    //批量添加首页推荐
    void createRecPro(List<SmsHomeRecommendProduct> homeRecommendProductList);
    //批量删除推荐
    void deleteRecPro(Integer[] ids);
    //分页查询推荐
    IPage<SmsHomeRecommendProduct> RecProList(Integer pageNum, Integer pageSize, String productName, Integer recommendStatus);
    //批量修改推荐状态
    void updateRecRecommendStatus(Integer[] ids, Integer recommendStatus);
    //修改推荐排序
    void updateRecSort(Integer id, Integer sort);

    List<SmsHomeRecommendProduct> findByName(List<SmsHomeRecommendProduct> homeRecommendProductList);
}
